package com.zyz;


import org.springframework.security.crypto.password.PasswordEncoder;
/**
 * @author 娃娃鱼
 * @date 2018/3/27 20:41
 */
public class MyPasswordEncoder implements PasswordEncoder {

    @Override
    public String encode(CharSequence arg0) {
        return arg0.toString();
    }

    @Override
    public boolean matches(CharSequence arg0, String arg1) {
        return arg1.equals(arg0.toString());
    }

}
